package com.wf.course.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.utils.page.PageBean;
import com.wf.course.dao.IActivityNewsMapper;
import com.wf.course.model.comm.ActivityNews;
import com.wf.course.service.IActivityNewsService;

@Service
@Transactional
public class IActivityNewsServiceImpl implements IActivityNewsService {
	
	@Autowired
	private IActivityNewsMapper mapper;

	@Override
	public void getActivityNewsList(PageBean<ActivityNews> pageBean) {
		// TODO Auto-generated method stub
		
		pageBean.setResults(mapper.getActivityNewsList(pageBean));
		pageBean.setTotalCount(mapper.getActivityNewsCount(pageBean));
		
	}

	@Override
	public void saveActivityNews(ActivityNews activityNews) {
		// TODO Auto-generated method stub
		mapper.saveActivityNews(activityNews);
		
	}

	@Override
	public void deleteActivityNews(Integer id) {
		// TODO Auto-generated method stub
		mapper.deleteActivityNews(id);
		
	}

	@Override
	public ActivityNews downLoadActivityNews(Integer id) {
		// TODO Auto-generated method stub
		return mapper.downLoadActivityNews(id);
	}

	@Override
	public Integer updateActivityNews(ActivityNews activityNews) {
		// TODO Auto-generated method stub
		return mapper.updateActivityNews(activityNews);
		
	}

	 

}
